<? 
	$title="Delete Currency"; 
	$mid="5";
	
	require("required/dbconnect.php"); 
	require_once("required/function.php");
	
	checkAccess("allow_system_management",1);
	if(isset($_POST['btnsubmit']))
	{
		$id=$_POST['id'];
		
		mysql_query("delete from os_currency where id=$id")or die(mysql_error());
		header("Location:currency_setting.php?action=2");
		
	}
	else
	{
	
		require("required/header.php");	
		$id=$_GET['id'];		
	
		
?>
<table width="100%">
 
    <td valign="top" align="left">
       <table width="95%" align="center">
	<tr>
		<td class="title"><?= $title ?></td>
	</tr>
	<tr>
		<td align="center">Confirm to delete?</td>
	</tr>
	<tr>
		<td colspan="3" align="center">
		<form action="<?= $_SERVER['PHP_SELF'] ?>" method="post">
		<input type="hidden" value="<?= $id ?>" name="id">
		<input type="submit" value="Yes" name='btnsubmit' class="button">
		<input type="button" value="No" onClick="history.go(-1)" class="button">
		</form>
		</td>
	</tr>
	</table>
	</td>
 
</table>
<? } require("required/footer.php"); ?>
